Skip to content

Conversation

@w-javed
Copy link
Contributor

@w-javed w-javed commented Jan 8, 2026

Copilot AI review requested due to automatic review settings January 8, 2026 19:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes package verification logic by changing the package name normalization from uppercase to lowercase, which aligns with Python packaging standards (PEP 503). It also improves error handling to prevent KeyError exceptions when packages are completely missing.

Key changes:

  • Changed package name normalization from .upper() to .lower() for both installed and expected package dictionaries
  • Updated error logging to use .get() with a default value instead of direct dictionary access

@w-javed
Copy link
Contributor Author

w-javed commented Jan 8, 2026

/check-enforcer override

Copy link
Member

@mccoyp mccoyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The casing change is consistent for both sets being compared, and seems like it would possibly prevent the issue in your pipeline run. Change looks good to me

@w-javed w-javed enabled auto-merge (squash) January 9, 2026 01:23
@w-javed w-javed merged commit e4b5384 into main Jan 9, 2026
16 checks passed
@w-javed w-javed deleted the Eval-SDK-Release-Fix branch January 9, 2026 16:58
kdestin added a commit to kdestin/azure-sdk-for-python that referenced this pull request Jan 9, 2026
weshaggard pushed a commit that referenced this pull request Jan 9, 2026
…ation in latestdependencies (#44597)

* Revert "Fix-Verify-Installed-Packages (#44587)"

This reverts commit e4b5384.

* fix: Apply PEP 503 package name normalization before verifying packages

    This resolves issues where packages, like ruamel.yaml, may
    appear under different names across the set of expected and
    installed package sets (e.g. `ruamel-yaml` and `ruamel.yaml`) despite
    both names referring to the same package per PEP 503.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants